package cn.lanqiao.rabc.dao;

import cn.lanqiao.rabc.entity.Menu;
import cn.lanqiao.rabc.vo.MenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuDao {

    @Select("select m.* from menu m, role_menu rm where rm.menu_id = m.menu_id and role_id = #{roleId}")
    List<MenuVO> queryMenuListByRoleId(int roleId);
}
